﻿using Autofac.Extras.DynamicProxy;
using JW.IDao;
using JW.Web.Base;
using Microsoft.AspNetCore.Mvc;
using System.Linq;

namespace JW.Web.Controllers
{
    [Intercept(typeof(LogInterceptor))]
    public class ProductController : BaseController
    {
        public ISCRLevel _sCRLevel { get; set; }

        public ActionResult Index()
        {
            return View();
        }

        [HttpGet]
        public object GetList(int id)
        {
            return _sCRLevel.GetLevels(1).ToList();
        }

        [HttpGet]
        public object GetUser()
        {
            return _sCRLevel.GetLevels(1).ToList();
        }

        [HttpGet]
        public object GetViewBanks()
        {
            throw new System.Exception("asdasdsa");
            return _sCRLevel.GetLevels(1).ToList();
        }
    }
}